OBJECT IN SCREEN
This command will return a value of one if the specified 3D object is wholly or partly visible within the screen borders, otherwise zero is returned.
Return Integer=OBJECT IN SCREEN(Object Number)
Object Number
Integer
The object number
This command will return a value of one if the specified 3D object is wholly or partly visible within the screen borders, otherwise zero is returned
Even if the object is behind the camera, its overall size may partially clip the screen area. The parameter should be specified using an integer value.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
load object "models\model.x",ObjectNumber
print "BASIC3D EXPRESSION DATA"
if object exist(ObjectNumber)=1
print "object in screen:";object in screen(ObjectNumber)
endif
while mouseclick()=0
sync
endwhile
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index